#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
    char ch[82] = { 0 };
    int n = 0;
    while ((ch[n++] = getchar()) != '\n');
    ch[n - 1] = '\0';
    n--;
    for (int i = 0; i < n / 2; i++)
    {
        char mid = ch[i];
        ch[i] = ch[n - i - 1];
        ch[n - i - 1] = mid;
    }
    for (int i = 0; i < n; i++)
        printf("%c", ch[i]);
    return 0;
}